package day11_rellyGame;

public class Attack {
    int atk;
    int def;
    String name;
    Attack(){}
    Attack(String name,int atk,int def){
        this.name=name;
        this.atk=atk;
        this.def=def;
    }
}
class Player extends Attack implements Show {
    int HP;
    Player(){}
    Player(String name,int atk,int def,int HP){
        this.name=name;
        this.atk=atk;
        this.def=def;
        this.HP=HP;
    }


    @Override
    public void show() {
        System.out.println(name+"\t"+atk+"\t"+def+"\t"+HP);
    }
}
class Weapon extends Attack implements Show{
    boolean close;
    Weapon(){}
    Weapon(String name,int atk,int def,boolean close){
        this.name=name;
        this.atk=atk;
        this.def=def;
        this.close=close;
    }
    @Override
    public void show() {
        System.out.println(name+"\t"+atk+"\t"+def+"\t"+close);
    }
}